<?php

class Registry {
	private static $_data = array();
	
	private function __construct() {}
	private function __clone() {}
	
	public static function set($name, $value) {
		return self::$_data[$name] = $value;
	}
	
	public static function get($name) {
		return self::has($name) ? self::$_data[$name] : null;
	}
	
	public static function has($name) {
		return isset(self::$_data[$name]);
	}
	
	public static function del($name) {
		unset(self::$_data[$name]);
	}
}